package com.sinven.service;

import com.sinven.mapper.SinglePageMapper;
import com.sinven.pojo.SinglePage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SinglePageServiceImpl implements SinglePageService {
    @Autowired
    private SinglePageMapper pageMapper;

    @Override
    public SinglePage queryPage(String code) {
        return pageMapper.queryPageByCode(code);
    }

    @Override
    public boolean updatePage(SinglePage page) {
        return pageMapper.updatePage(page) > 0;
    }
}
